public class Devid {
    public static int count = 0;
    public Devid() {
    }

    public double devid(int x, int y)throws Exception{
        if(y==0){
            throw new ArithmeticException("除数为0!");
        }
        return (double) x /y;
    }
}
